<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../../../demo/icons/iconfont.css">
    <style>
        body {
            margin: 50px;
        }
        .input-wrapper {
            display: flex;
            align-items: center;
            padding-bottom: 8px;
            border-bottom: 1px solid grey;
            width: 300px;
        }
        .search-icon {
            margin-right: 8px;
        }
        .input-wrapper input {
            border: none;
            outline: none;
            flex: 1;
        }
        .input-wrapper ::placeholder {
            color: red;
            font-size: 14px;
            font-weight: 100;
        }
        .search-wrapper {
            display: flex;
        }
        .shopping-cart-icon {
            position: relative;
        }
        .shopping-cart-icon::after {
            content: "5";
            display: block;
            width: 16px;
            height: 16px;
            border-radius: 8px;
            background-color: red;
            color: #fff;
            font-size: 10px;
            line-height: 16px;
            text-align: center;
            position: absolute;
            top: 0;
            right: 0;
            transform: translate(50%, -50%);
        }
    </style>
</head>
<body>
    <div class="search-wrapper">
        <div class="input-wrapper">
            <span class="search-icon iconfont icon-search"></span>
            <input type="text" placeholder="搜一搜">
        </div>
        <span class="shopping-cart-icon iconfont icon-cart"></span>
    </div>

    <input type="text" placeholder="hello world">
</body>
</html>